/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bancoDeDados;

import com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException;
import java.sql.SQLException;
import regraDeNegocio.RNResponsavel;

/**
 *
 * @author Gean
 */
public class BDResponsavel {
    
    public void insertBD(RNResponsavel resp) throws MySQLIntegrityConstraintViolationException, SQLException{
        Conexao c = new Conexao();  
         c.insert("INSERT INTO responsavel (siape, senhasiape, nomeresp, email, cargo, idpredio, idsala) VALUES ('"+resp.getSiape()+"','"+
                 resp.getSenhaSiape()+"','"+resp.getNomeCompleto()+"','"+resp.getEmail()+"','"+resp.getCargo()+"','"+resp.getPredio()+"','"
                 +""+resp.getSala()+"')");
    } 
}
